package com.mycompany.app.hr.tna.batch.mapper;

import org.springframework.batch.item.file.mapping.FieldSet;
import org.springframework.batch.item.file.mapping.FieldSetMapper;

import com.mycompany.app.hr.tna.model.PunchClock;

public class PunchClockMapper implements FieldSetMapper{

    public Object mapLine(FieldSet fs) {

        if(fs==null)
            return null;
        PunchClock pc=new PunchClock();
        pc.setGid(fs.readString("gid"));
        pc.setProcessStatus(fs.readString("processStatus"));
        return pc;
        
    }

}
